home *** CD-ROM | disk | FTP | other *** search
- on(press){
- function hitfly(number)
- {
- _root.flies += 1;
- setProperty("/burst", _X, getProperty("/chopsticks", _X));
- setProperty("/burst", _Y, getProperty("/chopsticks", _Y));
- tellTarget("/burst")
- {
- play();
- }
- tellTarget("_root.fly" add number add ".move")
- {
- gotoAndStop("fall");
- play();
- }
- _root.time += _root.plustime;
- tellTarget("_root.success")
- {
- play();
- }
- tellTarget("_root.timer")
- {
- gotoAndStop("count");
- play();
- }
- }
- gotoAndStop(2);
- if(_root.chopsticks.invisible.hitTest(_root.fly1) eq true)
- {
- return hitfly(1);
- }
- if(_root.chopsticks.invisible.hitTest(_root.fly2) eq true)
- {
- return hitfly(2);
- }
- if(_root.chopsticks.invisible.hitTest(_root.fly3) eq true)
- {
- return hitfly(3);
- }
- if(_root.chopsticks.invisible.hitTest(_root.fly4) eq true)
- {
- return hitfly(4);
- }
- if(_root.chopsticks.invisible.hitTest(_root.fly5) eq true)
- {
- return hitfly(5);
- }
- if(_root.chopsticks.invisible.hitTest(_root.fly6) eq true)
- {
- return hitfly(6);
- }
- }
-